var $ = exports
var assert = require("assert")
var au = require("arrayUtils")
var foo = require("./require/foo")


$.testInexistantModule = function() {
	
	//java.lang.System.out.println(require.RequireError)
	assert.raises( 
		function() {require("nonExistantModule")},
		require.RequireError
	)
}

$.testRelativeModule = function() {
	assert.equal("FOO", foo.foo)
}

$.testCollectDependencies = function() {
	assert.equal("/test/require/bar", foo.dependencies[0])
	assert.equal(1, foo.dependencies.length)
	assert.ok( au.isArray(foo.dependencies) )
}